package com.emagic.manage.modules.room.view;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by xiatian on 2017/11/13.
 */

public class AllRoomUser {
    private List<RoomUser> list;

    public AllRoomUser() {
    }

    public List<RoomUser> getList() {
        return list;
    }

    public void setList(List<RoomUser> list) {
        this.list = list;
    }

    public static class RoomUser implements MultiItemEntity {

        public static final int MSG = 1;
        public static final int COM = 2;
        public static final int HSP = 3;

        private String serial;
        private String sendid;
        private String receiveid;
        private String account;
        private String firstname;
        private String message;
        private String time;
        private int state;
        private int itemType;
        private boolean candraw;
        private boolean show;
        private boolean headup;
        private String giftnum = String.valueOf(0);

        public RoomUser(int itemType) {
            this.itemType = itemType;
        }

        public RoomUser() {

        }

        public String getSerial() {
            return serial;
        }

        public void setSerial(String serial) {
            this.serial = serial;
        }

        public String getSendid() {
            return sendid;
        }

        public void setSendid(String sendid) {
            this.sendid = sendid;
        }

        public String getReceiveid() {
            return receiveid;
        }

        public void setReceiveid(String receiveid) {
            this.receiveid = receiveid;
        }

        public String getAccount() {
            return account;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public String getFirstname() {
            return firstname;
        }

        public void setFirstname(String firstname) {
            this.firstname = firstname;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public boolean isCandraw() {
            return candraw;
        }

        public void setCandraw(boolean candraw) {
            this.candraw = candraw;
        }

        public boolean isShow() {
            return show;
        }

        public void setShow(boolean show) {
            this.show = show;
        }

        public boolean isHeadup() {
            return headup;
        }

        public void setHeadup(boolean headup) {
            this.headup = headup;
        }

        public String getGiftnum() {
            return giftnum;
        }

        public void setGiftnum(String giftnum) {
            this.giftnum = giftnum;
        }

        @Override
        public int getItemType() {
            return itemType;
        }

        @Override
        public String toString() {
            return "RoomUser{" +
                    "serial='" + serial + '\'' +
                    ", sendid='" + sendid + '\'' +
                    ", receiveid='" + receiveid + '\'' +
                    ", account='" + account + '\'' +
                    ", firstname='" + firstname + '\'' +
                    ", message='" + message + '\'' +
                    ", time='" + time + '\'' +
                    ", state=" + state +
                    ", itemType=" + itemType +
                    ", candraw=" + candraw +
                    ", show=" + show +
                    ", headup=" + headup +
                    ", giftnum='" + giftnum + '\'' +
                    '}';
        }
    }
}
